icon = dxirc.ico
resource_file = dxirc.rc
resource_object = resource.o
windev_files = config.h dxirc.cbp dxirc.dev dxirc.iss dxirc.sln dxirc.vcproj README

noinst_DATA = $(resource_file) $(icon) $(windev_files)
if PLATFORM_WIN32
RC = @WINDRES@
RCFLAGS = --input-format=rc -O coff

$(resource_object): $(resource_file) $(icon)
	$(RC) $(RCFLAGS) -o $@ $<

all: $(resource_object)

CLEANFILES = $(resource_object)
endif # PLATFORM_WIN32

EXTRA_DIST = $(noinst_DATA)
